<!--if{!USER_ID}-->
<div class="panel dux-box">
    <div class="panel-body">
        <p class="text-main text-big">欢迎访问{$sys.site_title}</p>
        <p class="text-small">{$sys.site_introduction}</p>
        <div class="text-center">
            <a class="button text-small" href="{url('forum/Reg/index')}">立即注册</a>
        </div>
    </div>
</div>
<br>
<!--{else}-->
<div class="panel dux-box">
    <div class="sidebar-user">
            <table class="table table-noborder">
                <tbody>
                    <tr>
                        <td width="64">
                            <img class="avatar" width="64" height="64" src="{target('forum/User')->avatar($loginUserInfo['user_id'])}" alt="{$loginUserInfo.username}">
                        </td>
                        <td>
                            <ul class="info">
                                <li class="name"><a href="{url('forum/UserHome/index',array('user_id'=>$loginUserInfo['user_id']))}">{$loginUserInfo['username']}</a></li>
                                <li>用户组：{$loginUserInfo['group_name']}</li>
                                <li>积分：{$loginUserInfo['integral']}</li>
                            </ul>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="menu line">
                  <div class="x4"><a class="icon-home" href="{url('forum/UserHome/index',array('user_id'=>$loginUserInfo['user_id']))}"> 主页</a></div>
                  <div class="x4"><a class="icon-bars" href="{url('forum/UserHome/thread',array('user_id'=>$loginUserInfo['user_id']))}"> 帖子</a></div>
                  <div class="x4"><a class="icon-comment" href="{url('forum/UserHome/reply',array('user_id'=>$loginUserInfo['user_id']))}"> 回复</a></div>
            </div>
    </div>
</div>
<br>
<!--{/if}-->

<!--sidebar{app="forum" label="sidebarList"}-->
<div class="panel dux-box">
    <div class="panel-head">
        <h6>{$sidebar.name}</h6>
    </div>
    <!--if{$sidebar['type']}-->
    {$sidebar.content}
    <!--{else}-->
    <div class="panel-body">
        {$sidebar.content}
    </div>
    <!--{/if}-->
</div>
<br>
<!--{/sidebar}-->